// Copyright 2007-2008 Rory Plaire (codekaizen@gmail.com)

using System;

namespace NPack
{
    internal static class Throw
    {
        public static void DimensionMismatch()
        {
            throw new InvalidOperationException("Matrix<T> dimensions do not match for the operation attempted.");
        }

        public static void NullRow()
        {
            throw new InvalidOperationException("Matrix has a null row.");
        }

        public static void RowLengthMismatch()
        {
            throw new InvalidOperationException("The row arrays in this matrix are not of the same length.");
        }

        internal static void ZeroLengthMatrixDimension()
        {
            throw new InvalidOperationException(
                "Matrix has either no rows or no column definitions, and is therefore empty.");
        }
    }
}